@echo off

set REP_ROOT=%~dp0
set BUILD_DIR=%REP_ROOT%vs2010
set PROJECT_DIR=%REP_ROOT%

set CMAKE_CMD="c:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
set CMAKE_GENERATOR=-G "Visual Studio 10 Win64"
set CMAKE_OPTIONS=%CMAKE_GENERATOR% "%PROJECT_DIR%"

REM if EXIST "%BUILD_DIR%" (
	REM echo Removing "%BUILD_DIR%" dir...
	REM rmdir /S/Q "%BUILD_DIR%"
REM )

if NOT EXIST "%BUILD_DIR%" (
	echo Creating new "%BUILD_DIR%" dir...
	mkdir "%BUILD_DIR%"
)

echo Calling CMake...
pushd %BUILD_DIR%
%CMAKE_CMD% %CMAKE_OPTIONS%
popd

::call prepare_data.cmd

echo Done.